package legumes.client.services.callbacks;

import legumes.client.services.LegumesServicesHelper;
import legumes.client.services.util.rpc.SequencableRPCCall;
import legumes.shared.domain.CustomerRole;

public class SetCustomerRoleCallback extends SequencableRPCCall<Void> {
	private String customerId;
	private CustomerRole role;

	public SetCustomerRoleCallback(String customerId_, CustomerRole role_) {
		customerId = customerId_;
		role = role_;
	}

	@Override
	protected void doCall() {
		LegumesServicesHelper.LEGUMES_SERVICES.setCustomerRole(customerId,
				role, this);
	}

}